package gpstools;

/**
 * @author Marcin Skruch
 */
public class Waypoint implements Location {
    private final String label;
    private final Location location;

    public Waypoint(Location location, String label) {
        super();
        this.label = label;
        this.location = location;
    }

    public double getLatitude() {
        return location.getLatitude();
    }

    public double getLongitude() {
        return location.getLongitude();
    }

    public String getLabel() {
        return label;
    }

}
